package ui.gui;

import java.util.*;
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;

import ui.*;
import ui.db.*;

public class SQLInfo extends Dialog {
        String sql = null;

        public SQLInfo(String sql){
                this.sql = sql;
        }

        public void open(){
                Shell shell = new Shell(SqlAdmin.display, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
                shell.setText("SQL Query Context");
                Vector labels = new Vector();
                labels.add("Query   :");
                Vector values = new Vector();
                values.add(sql);
                createPropertyList(shell, labels, values);
                shell.pack();
                shell.open();
        }

}
